#define  _CRT_SECURE_NO_WARNINGS 1
int removeElement(int* nums, int numsSize, int val)
{
    int str, tmp;
    str = tmp = 0;
    while (tmp < numsSize)
    {
        if (nums[tmp] != val)
        {
            nums[str] = nums[tmp];
            str++;
            tmp++;

        }
        else
        {
            tmp++;
        }
    }
    return str;


}


